package com.qiangesoft.datasourcepro.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.qiangesoft.datasourcepro.entity.BcgDataSource;

import java.util.List;

/**
 * <p>
 * 数据源 服务类
 * </p>
 *
 * @author qiangesoft
 * @since 2024-03-13
 */
public interface IBcgDataSourceService extends IService<BcgDataSource> {

    /**
     * 切换数据源
     *
     * @param datasourceId
     * @return
     */
    List<BcgDataSource> changeDataSource(String datasourceId);

    /**
     * 切换数据源
     *
     * @return
     */
    List<BcgDataSource> changeDataSourceByAnnotation();
}
